import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/tjzy/company/` + url, ...arg)
export default {
	companyPage(data) {
		return request('pageList', data, 'post')
	},
	listCompany(data) {
		return request('listAll?val=' + data, '', 'get')
	},
	addCompany(data) {
		return request('add', data, 'post')
	},
	editCompany(data) {
		return request('edit', data, 'post')
	},
	delCompany(data) {
		return request('del', data, 'post')
	}
}
